package com.shanzmoo.db.store.entity.vo;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 仓库采购单 vo对象
 *
 * @author xueqz 2021-03-07
 */
@Data
@ApiModel("仓库采购单-vo询对象")
public class StorePurchaseBillVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Integer id;

    @ApiModelProperty(value = "单号")
    private String billNo;

    @ApiModelProperty(value = "采购供应商")
    private Integer supplierId;

    @ApiModelProperty(value = "采购供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "采购员")
    private Integer purchaseUser;

    @ApiModelProperty(value = "采购员名称")
    private String purchaseUserName;

    @ApiModelProperty(value = "采购大仓")
    private Integer storeId;

    @ApiModelProperty(value = "采购大仓名")
    private String storeName;

    @ApiModelProperty(value = "所属客户id")
    private Integer memberId;

    @ApiModelProperty(value = "所属客户名")
    private String memberName;

    @ApiModelProperty(value = "状态：0-待审核,1-审核通过（待入库）,2-到货异常,3-已完成,9-已取消")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "审批人")
    private Integer examineUser;

    @ApiModelProperty(value = "审批人名")
    private String examineUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "审批时间")
    private LocalDateTime examineTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "行表信息")
    private List<StorePurchaseBillDetailVO> detail;

}
